package com.ctshk.rpc.airexpress.mapper;

import com.ctshk.rpc.airexpress.base.CustomBaseMapper;
import com.ctshk.rpc.airexpress.entity.AirportExpressChannelOfflineAgentCustom;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 机场快线---线下代理商自定义用户部门设置 Mapper 接口
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-02-05
 */
public interface AirportExpressChannelOfflineAgentCustomMapper extends CustomBaseMapper<AirportExpressChannelOfflineAgentCustom> {

    @Delete("delete from t_airport_express_channel_offline_agent_custom where increase_strategy_id in (select id from t_airport_express_increase_strategy where airport_express_id = #{expressId})")
    void deleteByAirportExpressId(@Param("expressId") Long airportExpressId);
}
